package cn.codeforfun.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2017/2/23.
 */
@RefreshScope
@RestController
public class TestController {
    @Value("${appid}")
    private String appid;
    @Value("${appsecret}")
    private String appsecret;
    @Value("${path}")
    private String path;

    @RequestMapping("/test")
    public String test() {
        return "appid:" + this.appid + ",appsecret:" + this.appsecret + ",path:" + this.path;
    }
}
